import request from '../utils/request.js'

//用户登录
export function LoginUser(data){
	return request({
		url:'/users/login',
		method:'post',
		data,
	})
}

//用户注册
export function RegisterUser(data){
	return request({
		url:'/users/insert',
		method:'post',
		data,
	})
}

//获取当前用户

export function GetCurrentUser(params){
	return request({
		url:'/users/user',
		method:'get',
		params
	})
}

//更改用户资料

export function UpdateUser(data){
	return request({
		url:'/users/update',
		method:'post',
		data
	})
}